<nav class="navbar-default navbar-static-side" role="navigation">
	<div class="nav-close"><i class="fa fa-times-circle"></i></div>
	<div class="sidebar-collapse">
  	<ul class="nav" id="side-menu">
    	<li class="nav-header">
      	<div class="dropdown profile-element">
        	<a data-toggle="dropdown" class="dropdown-toggle" href="#">
          	<span class="clear">
            	<span class="block m-t-xs"><strong class="font-bold">#(AUTHSESSION.username)</strong></span>
              <span class="text-muted text-xs block">#(AUTHSESSION.name)<b class="caret"></b></span>
            </span>
          </a>
          <ul class="dropdown-menu animated fadeInRight m-t-xs">
          	<li><a href="javascript:" onclick="layer.open({area: ['450px', '350px'],content: 'editPassword',type: 2,title: '修改密码'});">修改密码</a></li>
            <li class="divider"></li>
            <li><a href="logout">退出账户</a></li>
          </ul>
        </div>
        <div class="logo-element">jSub</div>
      </li>
      #for(item1:menu)
      	#if(!item1.value.type||item1.value.type=="menu")
      	<li>
      		<a href="javascript:;"><i class="#if(item1.value.icon)#(item1.value.icon)#else#if(item1.value.children)fa fa-clone#else fa fa-genderless#end#end"></i><span class="nav-label">#(item1.value.name)</span><span class="fa arrow"></span></a>
      		#if(item1.value.children)
        		<ul class="nav nav-second-level">
        			#for(item2:item1.value.children)
        				#if(!item2.type||item2.type=="menu")
        				<li>
        					#if(item2.children)
        						<a href="javascript:;"><i class="#if(item2.icon)#(item2.icon)#else#if(item2.children)fa fa-clone#else fa fa-genderless#end#end"></i>#(item2.name)<span class="fa arrow"></span></a>
        						<ul class="nav nav-third-level">
        						#for(item3:item2.children)
        							#if(!item3.type||item3.type=="menu")
        							<li><a class="J_menuItem" href="#(item1.value.path)#(PRE_PATH)#(item3.url)"><i class="#if(item3.icon)#(item3.icon)#else fa fa-genderless#end"></i>#(item3.name)</a></li>
        							#end
        						#end
        						</ul>
        					#else
        						<a class="J_menuItem" href="#(item1.value.path)#(PRE_PATH)#(item2.url)"><i class="#if(item2.icon)#(item2.icon)#else fa fa-genderless#end"></i>#(item2.name)</a>
        					#end
        				</li>
        				#end
        			#end
        		</ul>
      		#end
      	</li>
      	#end
      #end
			</ul>
	 </div>
</nav>